<script lang="ts" setup>
import { useRoute } from 'vue-router'

const route = useRoute()
// params传参
// const userId = route.params
// query传参
// const userId = route.query

// props正常接收值
const props = defineProps({
  userId: String,
  userName: String
})
</script>
<template>
  <div>666我是子路由</div>
  <div>这是路由传过来的userId：{{ props.userId }}</div>
  <div>这是路由传过来的userName：{{ props.userName }}</div>
</template>
<style lang="scss" scoped></style>
